package yl.hs.bmipfull.pojo.material;

import org.springframework.lang.Nullable;
import yl.hs.bmipfull.annotations.DBField;
import yl.hs.bmipfull.annotations.DBTable;
import yl.hs.bmipfull.pojo.BaseEntity;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 作用:  采购合同信息实体类<br/>
 * 创建时间: 2021年05月19日 15时30分07秒 <br/>
 *
 * @author 吴高丰
 */
@DBTable(disName = "采购合同信息", mapCode = "purchase_contract")
public class PurchaseContractEntity extends BaseEntity {

    /**
     * 主键
     */
    @Nullable
    private Long id;
    /**
     * 编号
     */
    @DBField(disName = "采购合同信息编号", mapCode = "sn", isSerialNumber = true, isRequire = true, snPrefix = "CGHT")
    private String sn;
    /**
     * 供应商编号
     */
    private String supplierSN;
    /**
     * 合同名称
     */
    @DBField(disName = "合同名称")
    private String contractName;
    /**
     * 供应商名称
     */
    @DBField(disName = "供应商名称")
    private String supplierName;
    /**
     * 供应商名称拼音
     */
    private String supplierNamePY;
    /**
     * 签订时间
     */
    @DBField(disName = "签订时间")
    private Date startTime;
    /**
     * 采购产品
     */
    @DBField(disName = "采购产品")
    private String products;
    /**
     * 联系人
     */
    @DBField(disName = "联系人")
    private String linker;
    /**
     * 联系电话
     */
    @DBField(disName = "联系电话")
    private String linkPhone;
    /**
     * 采购员
     */
    @DBField(disName = "采购员")
    private String purchaser;
    /**
     * 价格设置状态
     */
    @DBField(disName = "价格设置状态")
    private boolean priceSet;
    /**
     * 组织代码
     */
    private String organizationCode;
    /**
     * 备注
     */
    @DBField(disName = "备注")
    private String remark;
    @DBField(disName = "签约单位", mapCode = "contractingUnit")
    private String contractingUnit;
    private BigDecimal initialAmount;
    private Date initialDate;
    private String deductionType;

    public String getDeductionType() {
        return deductionType;
    }

    public void setDeductionType(String deductionType) {
        this.deductionType = deductionType;
    }

    public String getContractingUnit() {
        return contractingUnit;
    }

    public void setContractingUnit(String contractingUnit) {
        this.contractingUnit = contractingUnit;
    }

    public boolean isPriceSet() {
        return priceSet;
    }

    public BigDecimal getInitialAmount() {
        return initialAmount;
    }

    public void setInitialAmount(BigDecimal initialAmount) {
        this.initialAmount = initialAmount;
    }

    public Date getInitialDate() {
        return initialDate;
    }

    public void setInitialDate(Date initialDate) {
        this.initialDate = initialDate;
    }

    /**
     * 状态
     */
    private Short state;

    public String getContractName() {
        return contractName;
    }

    public void setContractName(String contractName) {
        this.contractName = contractName;
    }

    public Long getId() {
        return this.id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getSn() {
        return this.sn;
    }

    public void setSn(String sn) {
        this.sn = sn;
    }

    public String getSupplierSN() {
        return this.supplierSN;
    }

    public void setSupplierSN(String supplierSN) {
        this.supplierSN = supplierSN;
    }

    public String getSupplierName() {
        return this.supplierName;
    }

    public void setSupplierName(String supplierName) {
        this.supplierName = supplierName;
    }

    public String getSupplierNamePY() {
        return this.supplierNamePY;
    }

    public void setSupplierNamePY(String supplierNamePY) {
        this.supplierNamePY = supplierNamePY;
    }

    public Date getStartTime() {
        return this.startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public String getProducts() {
        return this.products;
    }

    public void setProducts(String products) {
        this.products = products;
    }

    public String getLinker() {
        return this.linker;
    }

    public void setLinker(String linker) {
        this.linker = linker;
    }

    public String getLinkPhone() {
        return this.linkPhone;
    }

    public void setLinkPhone(String linkPhone) {
        this.linkPhone = linkPhone;
    }

    public String getPurchaser() {
        return this.purchaser;
    }

    public void setPurchaser(String purchaser) {
        this.purchaser = purchaser;
    }

    public boolean getPriceSet() {
        return this.priceSet;
    }

    public void setPriceSet(boolean priceSet) {
        this.priceSet = priceSet;
    }

    public String getOrganizationCode() {
        return this.organizationCode;
    }

    public void setOrganizationCode(String organizationCode) {
        this.organizationCode = organizationCode;
    }

    public String getRemark() {
        return this.remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Short getState() {
        return this.state;
    }

    public void setState(Short state) {
        this.state = state;
    }


}